STEP 13: Let's finish the last three combinations in our game!

  • Add if and three more times. In each if statement test if the player chose "scissors" and the computer chose "rock", "paper", or "scissors".
  • Add Set Text to each if statement. Change the string in each to "Computer wins!" , "Player wins!" or "Tie game!" depending on who won.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)